package com.lf.web.service.system.webnode;

import com.lf.data.Cluster;
import com.lf.web.service.ServiceSupport;
import org.apache.log4j.Logger;

import java.util.List;

public class WebNodeServiceSupport extends ServiceSupport {

    private static final Logger log = Logger.getLogger(WebNodeServiceSupport.class);
    private WebNodeDAO channeldao;
    private List<Cluster> channels = null;

    public void setChanneldao(WebNodeDAO channeldao) {
        this.channeldao = channeldao;
    }

    public String execute() {
        channels = channeldao.find(null, null, null);
        context.put("channels", channels);
        return SUCCESS;
    }
}
